package com.yunsc.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunsc.common.serializer.TimestampToDateSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 商家用户角色记录表
 *
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-05 01:37:46
 */
@Data
@TableName("yunsc_store_user_role")
public class YunscStoreUserRoleEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId
    private Integer id;
    /**
     * 超管用户ID
     */
    private Integer storeUserId;
    /**
     * 角色ID
     */
    private Integer roleId;
    /**
     * 商城ID
     */
    private Integer storeId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = TimestampToDateSerializer.class)
    private Integer createTime;

}
